home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-11-04 | 5.2 KB | 147 lines |
- # Master Makefile for GNU find, xargs, and locate.
- # Copyright (C) 1987, 1990-1991 Free Software Foundation, Inc.
-
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2, or (at your option)
- # any later version.
-
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
-
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- SHELL = d:/gnu/bin/bash.ttp
-
- #### Start of system configuration section. ####
-
- srcdir = .
-
-
- CC = cc
- AR = ar
- # Set RANLIB = echo if your system doesn't have or need ranlib.
- RANLIB = echo
- # Use cp if you don't have install.
- INSTALL = install
- INSTALLDATA = install
-
- # Things you might add to DEFS:
- # -DCACHE_IDS If you want find -nouser and -nogroup to make
- # tables of used UIDs and GIDs at startup
- # instead of using getpwuid or getgrgid when
- # needed. Speeds up -nouser and -nogroup unless
- # you are running NIS or Hesiod, which make
- # password and group calls very expensive.
- # -DSTDC_HEADERS If you have ANSI C headers and libraries.
- # -DPOSIX If you have POSIX.1 headers and libraries.
- # Also need to define -DDIRENT.
- # -DUSG If you have System V/ANSI C string headers and
- # functions, and ndir.h.
- # -DDIRENT If you have dirent.h.
- # -DSYSNDIR Old Xenix systems (selects sys/ndir.h).
- # -DVOID_CLOSEDIR If your closedir function returns void, not int.
- # -DMAJOR_IN_MKDEV If major, minor, makedev are defined in sys/mkdev.h.
- # -DCHAR_UNSIGNED If type `char' is unsigned.
- # -DLIMITS_MISSING If you lack limits.h (uses sys/param.h instead; BSD).
- # -DST_BLOCKS_MISSING If your `struct stat' lacks st_blocks and st_blksize.
- # -DVPRINTF_MISSING If you lack vprintf function (but have _doprnt).
- # -DDOPRNT_MISSING If you lack _doprnt function. Also need to define
- # -DVPRINTF_MISSING.
- # -DTM_ZONE_MISSING If you lack tm_zone in struct tm; instead
- # use tm_isdst and tzname.
- # -DTZNAME_MISSING If you lack tm_zone and tzname; instead use
- # tm_isdst and timezone. Also need to define
- # TM_ZONE_MISSING.
- # Define zero or one of the following:
- # If no FS_* is defined, -fstype treats every filesystem as type "unknown".
- # -DFS_MNTENT If you use 4.3BSD getmntent to get filesystem type.
- # -DFS_GETMNT If you use Ultrix getmnt to get filesystem type.
- # -DFS_STATFS If you use 4.4BSD statfs to get filesystem type.
- # -DFS_USG_STATFS If you use SVR3.2 statfs to get filesystem type.
- # -DFS_AIX_STATFS If you use AIX3 statfs to get filesystem type.
- # -DFS_STATVFS If you use SVR4 statvfs to get filesystem type.
-
- DEFS = -DSTDC_HEADERS -DDIRENT
-
- CDEBUG = -g -O
- CFLAGS = $(CDEBUG) -I. -I../lib -I$(srcdir)/lib $(DEFS)
- LDFLAGS = -g
- LIBS =
-
- prefix = /usr/local
-
- # Where to install `find' and `locate'.
- bindir = $(prefix)/gnubin
-
- # Where to install programs to create the `locate' database.
- libdir = $(prefix)/lib/locate
-
- # Where to install the `locate' database.
- datadir = $(prefix)/lib/locate
-
- # Name of the `locate' database file.
- FCODES = $(datadir)/find.codes
-
- # Where to install manual pages.
- mandir = $(prefix)/man/man1
- # Extension (not including `.') for the installed manual page filenames.
- manext = 1
-
- #### End of system configuration section. ####
-
- # Arguments to pass to subdirectory makes.
- MDEFINES = bindir='$(bindir)' libdir='$(libdir)' datadir='$(datadir)' \
- mandir='$(mandir)' manext='$(manext)' FCODES='$(FCODES)' INSTALL='$(INSTALL)' \
- INSTALLDATA='$(INSTALLDATA)' AR='$(AR)' RANLIB='$(RANLIB)' \
- CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
-
- DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README configure
-
- # Subdirectories to run make in for the primary targets.
- SUBDIRS = lib find xargs locate man
-
- all:
- for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
- .PHONY: all
-
- install:
- for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
- .PHONY: install
-
- tags:
- for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
- .PHONY: tags
-
- TAGS:
- for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
- .PHONY: TAGS
-
- clean:
- for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
- .PHONY: clean
-
- distclean:
- for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
- rm -f Makefile config.status
- .PHONY: distclean
-
- realclean:
- for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
- rm -f Makefile config.status
- .PHONY: realclean
-
- dist:
- echo find-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q find/version.c` > .fname
- rm -rf `cat .fname`
- mkdir `cat .fname`
- ln $(DISTFILES) `cat .fname`
- for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
- tar chZf `cat .fname`.tar.Z `cat .fname`
- rm -rf `cat .fname` .fname
- .PHONY: dist
-